tree-wide: Use helpers for unlinkat()
authorColin Walters <walters@verbum.org>
Wed, 6 Sep 2017 15:37:02 +0000 (11:37 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 7 Sep 2017 16:45:48 +0000 (16:45 +0000)
commit303320163f2365db9fea67f64dcc1578e034116e
treeae002f2d58cfcb41dca2ab6738ea158f0759bb2c
parent57509e4d50f916e1dcb5a6afdbcfe921093f965b
tree-wide: Use helpers for unlinkat()

We have `ot_ensure_unlinked_at()` for the "ignore ENOENT" case, and
`glnx_unlinkat()` otherwise. Port all in-tree callers to one or the other as
appropriate.

Just noticed an unprefixed error in the refs case and decided to do a tree-wide
check.

Closes: #1142
Approved by: jlebon
src/libostree/ostree-repo-checkout.c
src/libostree/ostree-repo-prune.c
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo-refs.c
src/libostree/ostree-repo.c
src/libotutil/ot-fs-utils.c